package com.jtcoding.chat.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.time.LocalDateTime;

/**
 * @author jason.tang
 * @create 2018-12-27 12:58
 * @description
 */

@ApiModel(description = "聊天记录")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ChatRecord {
    @ApiModelProperty(value = "记录编号")
    private Integer recNum;

    @ApiModelProperty(value = "用户编号")
    private Integer userNum;

    @ApiModelProperty(value = "好友编号")
    private Integer friendNum;

    @ApiModelProperty(value = "是否已读")
    private Integer read;

    @ApiModelProperty(value = "聊天时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "是否删除")
    private Integer delete;

    @ApiModelProperty(value = "消息内容")
    private String message;

    @ApiModelProperty(value = "消息类型")
    private String msgType;
}